 <%@page pageEncoding="UTF-8" language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
  <head>
    <title>Bootstrap 101 Template</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
     <link type="text/css" rel="stylesheet" href="./css/bootstrap.css" />
     <link type="text/css" rel="stylesheet" href="./css/refine.css" />

  </head>
  <body>
	<div class="container">
	
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Please Sign In</h3>
                    </div>
                    <div class="panel-body">
                        <form role="form">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="E-mail" name="email" type="email" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" name="password" type="password" value="">
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Remember Me">Remember Me
                                    </label>
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <a href="" class="btn btn-lg btn-success btn-block" onclick="setshow();">Login</a>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="./views/index.html" >click</a>
   <script type="text/javascript"  charset="utf-8" src="./js/jquery.js"></script>
    <script type="text/javascript"  charset="utf-8" src="./views/refine.js"></script>
  <script type="text/javascript"  charset="utf-8" src="./js/bootstrap.js"></script>
  <script>
  function setshow(){ 
	  var reqData = {
		        'room' : $("#roomid").find('option:selected').text(),
		        'roomid' :$("#roomid").val()
		       }
	  //   var repsone = REFINE.sendAsynRequest("GET",reqData);
	  
	      var repsone = REFINE.sendRequest("GET",reqData);
	      if(repsone.success){
	   /*  	  location.href=repsone.data */;
	        location.href = 'https://www.baidu.com/';
	    	  return false;
	    	//  alert( window.location.href);
	    	 
	      }
	  }  
  </script>
  </body>
</html>
